package com.sinosoft.bee.services.proposal.service.impl;

import com.sinosoft.bee.services.proposal.entity.proposal.ProposalTrack;
import com.sinosoft.bee.services.proposal.service.ProposalTrackService;
import com.sinosoft.bee.services.proposal.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: TrickerL
 * @Description: bee
 * @Date: Create in 15:38 2018/5/16
 * @Modified By:
 */
@Service
@Transactional
public class ProposalTrackServiceImpl implements ProposalTrackService {
//    @Autowired
//    private AppntInfoMapper appntInfoMapper;
//    @Autowired
//    private InsuredInfoMapper insuredInfoMapper;


    @Autowired
    private ProposalTrackMapper proposalTrackMapper;

    /**
     * 新增轨迹表信息
     * @return
     */
    @Override
    public void insertProposalTrack(ProposalTrack proposalTrack){
         proposalTrackMapper.insertProposalTrack(proposalTrack);
    }


    /**
     * 删除轨迹表信息
     * @return
     */
    @Override
    public Integer deleteProposalTrack(ProposalTrack proposalTrack){
        return proposalTrackMapper.deleteProposalTrack(proposalTrack);
    }

    /**
     * 查询所有轨迹表
     * @return
     */
    @Override
    public List<ProposalTrack> selectAllTrack(){
        return proposalTrackMapper.selectAllTrack();
    }

    /**
     * 修改轨迹表信息
     * @param proposalTrack
     */
    @Override
    public void updateById(ProposalTrack proposalTrack){
         proposalTrackMapper.updateById(proposalTrack);
    }
}
